package com.itqf.service;

import com.itqf.exception.UserException;
import com.itqf.pojo.User;

import java.util.Map;

/**
 * projectName: rbacgp8
 *
 * @author: 赵伟风
 * time: 2021/8/12 11:22
 * description:
 */
public interface UserService {
    /**
     * 登录业务
     *   注意需要返回用户和返回用户的权限!
     *  如果用户账号或者密码错误,我们异常处理!
     * @param user
     * @return
     */
    Map<String, Object> login(User user) throws UserException;
}
